package com.shop.front.request.store;

import com.shop.domain.pink.StorePink;
import com.shop.domain.pink.StoreSnapPink;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@ApiModel("订单提交请求参数")
@Data
public class StoreOrderSubmitReq {

    @ApiModelProperty(value = "商品清单")
    private List<StoreOrderCartInfoSubmitReq> cartInfoList;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "支付方式  12 微信-Sand 13 支付宝-Sand 8 余额  9 TG")
    @NotNull(message = "请选择支付方式")
    private Integer payCode;

    @ApiModelProperty(value = "用户姓名")
    @NotBlank(message = "请输入用户姓名")
    private String realName;

    @ApiModelProperty(value = "收货地址")
    @NotBlank(message = "请输入收货地址")
    private String userAddress;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "请输入手机号")
    private String userPhone;

    @ApiModelProperty(value = "收货地址")
    @NotBlank(message = "请选择一个收货地址")
    private String userAddressSign;

    @ApiModelProperty("使用积分")
    private BigDecimal userIntegral;

    @ApiModelProperty(value = "收货地址", hidden = true)
    private Long userAddressId;

    @ApiModelProperty(value = "拼团信息", hidden = true)
    private StorePink storePink;

    @ApiModelProperty(value = "抢购拼团信息", hidden = true)
    private StoreSnapPink storeSnapPink;

}
